package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.StorePlanDetail;
import com.ruoyi.system.mapper.StorePlanDetailMapper;
import com.ruoyi.system.service.StorePlanDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/17
 **/
@Service
public class StorePlanDetailServiceImpl implements StorePlanDetailService {
    @Resource
    private StorePlanDetailMapper storePlanDetailMapper;

    @Override
    public List<StorePlanDetail> selectList(StorePlanDetail storePlanDetail) {
        return storePlanDetailMapper.selectList(storePlanDetail);
    }

    @Override
    public List<StorePlanDetail> selectByIds(List<Long> ids) {
        return storePlanDetailMapper.selectByIds(ids);
    }

    @Override
    public StorePlanDetail selectById(Long id) {
        return storePlanDetailMapper.selectById(id);
    }

    @Override
    public Boolean create(StorePlanDetail storePlanDetail) {
        return storePlanDetailMapper.insert(storePlanDetail) == 1;
    }

    @Override
    public Boolean update(StorePlanDetail storePlanDetail) {
        return storePlanDetailMapper.update(storePlanDetail) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return storePlanDetailMapper.deleteById(id) == 1;
    }
}
